package com.runjian.rundo.iot.agent.common.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.runjian.rundo.iot.agent.common.thread.ScheduledExecutorFactory;

/**
 * 配置属数
 *
 * @author CaoQingHua
 */
@Configuration
public class NetWorkBaseAutoConfiguration {

    @Bean
    @ConditionalOnMissingBean
    public ScheduledExecutorFactory deviceCommandParser(ScheduledConfigurationProperties scheduledConfigurationProperties) {
        return new ScheduledExecutorFactory(scheduledConfigurationProperties);
    }

}
